﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSite_CodeMan.Sys_CodeMan_Manage
{
    public partial class Admin_Pass_Update : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BaseClass.BaseClass.CheckState();
        }

        protected void BtnSave_Click(object sender, EventArgs e)
        {
            if (BLL.WebInfo.VateUpdatePass(txtOldPass.Value.Trim(), txtCheckPass.Value.Trim()))
            {
                BLL.LogInfo.AddSysLog("【修改密码】" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "｛修改成功｝");
                Common.MessageBox.Show(Page, "密码更新成功,新密码： " + txtCheckPass.Value + " 请牢记...", "Admin_Pass_Update.aspx", "seuss");
            }
            else
            {
                BLL.LogInfo.AddSysLog("【修改密码】" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "｛修改失败｝");
                Common.MessageBox.Show(Page, "密码更新失败，请确认你的原密码输入正确...", "Admin_Pass_Update.aspx", "error");
            }
        }
    }
}
